package com.pureut.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.storage.domain.Warehouse;
import com.pureut.storage.dto.WarehouseDto;
import com.pureut.storage.dto.WarehouseStringDto;
import com.pureut.storage.vo.WarehouseVo;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;

import java.util.List;

/***
 * 仓库管理service
 * Author:C
 * Date:2022/12/13 17:25
 * @DESC
 */
public interface WarehouseService {

    /**
     * 仓库列表
     */
    List<WarehouseDto> getList(WarehouseVo warehouseVo);

    /**
     *新增仓库
     */
    boolean addWarehouse(WarehouseVo warehouseVo);

    /**
     * 修改仓库
     */
    boolean updateWarehouse(WarehouseVo warehouseVo);

    /**
     * 查看
     */
    WarehouseDto getView(Long id);

    /**
     * 删除仓库
     */
    boolean deleteWarehouse(Long id);

    /**
     * 新增子区域
     */
    boolean addSubarea(WarehouseVo warehouseVo);

    /**
     * 根据库位编码获取仓库-库区-库位
     */
    WarehouseStringDto getWarehouseCode(String warehouseCode);

    /**
     * 获取仓库-库区-库位列表
     */
    List<String> getCombinationWarehouse();

    /**
     * 获取仓库列表
     */
    List<WarehouseDto> getCkById();

    /**
     * 根据仓库id获取仓库名称
     */
    String getWarehouseName(Long id);

    /**
     * 根据仓库id获取仓库-库区-库位数据
     */
    String getCombinationByWarehouseId(Long wareHouseId);
}
